﻿@using FlowBasisSampleSite.Domain.Entities
@{
    ViewBag.Title = "Permission";

    Permission permission = ViewBag.Permission;
}

<h2>Permission</h2>

<div>
@permission.Name
</div>

<div>
    <div>Granted to Roles</div>
    <ul>
        @foreach (var role in permission.Roles)
        {
            <li>
                @Html.ActionLink(role.Name, "Info", "Roles", new { id = role.RoleId }, null)
            </li>
        }
    </ul>
</div>